package com.shigi.sat.ga;

/**
 * Created by msiagi on 3.2.2015.
 */
public class SatPopulation {
    public int numberOfGeneration = 0;
    public SatIndividual[] satIndividuals;

    public SatPopulation(SatIndividual[] satIndividuals) {
        this.satIndividuals = satIndividuals;
    }

    public SatPopulation(SatPopulation satPopulation) {
        this.numberOfGeneration = satPopulation.numberOfGeneration;
        int numOfIndividuals = satPopulation.satIndividuals.length;

        this.satIndividuals = new SatIndividual[numOfIndividuals];
        for (int i = 0; i < numOfIndividuals; i++) {
            this.satIndividuals[i] = new SatIndividual(satPopulation.satIndividuals[i]);
        }
    }
}
